import Vue from 'vue'
import Router from 'vue-router'
import Home from '../pages/Home.vue'
import Regist from '../pages/Regist.vue'
import Login from '../pages/Login.vue'
import Shopping from '../pages/Shopping.vue'
import Myself from '../pages/Myself.vue'
import Shangchuan from '../pages/Shangchuan.vue'
import Upload from '../pages/Upload.vue'
import Search from '../pages/Search.vue'
import Search1 from '../pages/Search1.vue'
import Gooddetail from '../pages/Gooddetail.vue'
import Fenlei from '../pages/Fenlei.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Home,
      meta: {
        keepAlive: false
      }
    },
    {
      path: '/user/regist',
      component: Regist,
      meta: {
        keepAlive: false // 不需要缓存
      }
    },
    {
      path: '/user/login',
      component: Login,
      meta: {
        keepAlive: false // 不需要缓存
      }
    },
    {
      path: '/user/shopping',
      component: Shopping,
      meta: {
        keepAlive: false // 不需要缓存
      }
    },
    {
      path: '/user/myself',
      component: Myself,
      meta: {
        keepAlive: false // 不需要缓存
      }
    },
    {
      path: '/user/tou/upload',
      component: Upload,
      meta: {
        keepAlive: false // 不需要缓存
      }
    },
    {
      path: '/user/shangchuan',
      component: Shangchuan,
      meta: {
        keepAlive: false // 不需要缓存
      }
    },
    {
      path: '/user/search',
      component: Search,
      meta: {
        keepAlive: false // 不需要缓存
      }
    },
    {
      path: '/user/search1/:str',
      component: Search1,
      meta: {
        keepAlive: false // 不需要缓存
      }
    },
    {
      path: '/user/find/gooddetail/:abc',
      component: Gooddetail,
      meta: {
        keepAlive: false // 不需要缓存
      }
    },
    {
      path: '/user/fenlei',
      component: Fenlei,
      meta: {
        keepAlive: false // 不需要缓存
      }
    },
  ]
})
